package com.jarvis.core.interceptor;

import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;

/**
 * @author xuxukang
 * @date 2019-07-04 10:13
 */
public interface Interceptor {

  /**
   * 匹配方法(可能是构造函数、静态方法、实例方法)
   */
  ElementMatcher<MethodDescription> methodMatcher();

  /**
   * 实际用于增强的class
   */
  Class<?> getInterceptClass();

}
